//
//  PagingViewController.m
//  drug
//
//  Created by 沈鑫 on 16/4/5.
//  Copyright © 2016年 沈鑫. All rights reserved.
//

#import "PagingViewController.h"

@interface PagingViewController ()
@property (nonatomic, strong)UIView *lView;
@property (nonatomic, strong)UILabel *myLabel1;
@property (nonatomic, strong)UILabel *myLabel2;
@property (nonatomic, strong)UILabel *myLabel3;
@property (nonatomic, strong)UILabel *myLabel4;
@property (nonatomic, strong)UILabel *myLabel5;
@property (nonatomic, strong)UILabel *myLabel6;
@property (nonatomic, strong)UIButton *myButton1;
@property (nonatomic, strong)UIButton *myButton2;
@property (nonatomic, strong)UIButton *myButton3;
@property (nonatomic, strong)UIButton *myButton4;
@property (nonatomic, strong)UIButton *myButton5;
@property (nonatomic, strong)UIButton *myButton6;
@property (nonatomic, strong)UIImageView *myImage1;
@property (nonatomic, strong)UIImageView *myImage2;
@property (nonatomic, strong)UIImageView *myImage3;
@property (nonatomic, strong)UIImageView *myImage4;
@property (nonatomic, strong)UIImageView *myImage5;
@property (nonatomic, strong)UIImageView *myImage6;

@end

@implementation PagingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.lView = [[UIView alloc]initWithFrame:CGRectMake(KWIDTH / 3, 64, 1, KWIDTH / 3 * 2)];
    self.lView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:_lView];
    
    self.lView = [[UIView alloc]initWithFrame:CGRectMake(KWIDTH / 3 * 2, 64, 1, KWIDTH / 3 * 2)];
    self.lView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:_lView];
    
    self.lView = [[UIView alloc]initWithFrame:CGRectMake(0, 65 + KWIDTH / 3, KWIDTH, 1)];
    self.lView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:_lView];
    
    self.lView = [[UIView alloc]initWithFrame:CGRectMake(0, 63 + KWIDTH / 3 * 2, KWIDTH, 1)];
    self.lView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:_lView];
    
    _myButton1 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton1.frame = CGRectMake(0, 64, KWIDTH / 3, KWIDTH / 3);
    _myButton1.backgroundColor = [UIColor greenColor];
    [self.view addSubview:_myButton1];
    _myImage1 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage1.backgroundColor = [UIColor purpleColor];
    [_myButton1 addSubview:_myImage1];
    _myLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel1.textColor = [UIColor blackColor];
    _myLabel1.text = @"乔砥用药";
    [_myButton1 addSubview:_myLabel1];
    
    
    _myButton2 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton2.frame = CGRectMake(KWIDTH / 3, 64, KWIDTH / 3, KWIDTH / 3);
    _myButton2.backgroundColor = [UIColor purpleColor];
    [self.view addSubview:_myButton2];
    _myImage2 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage2.backgroundColor = [UIColor yellowColor];
    [_myButton2 addSubview:_myImage2];
    _myLabel2 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel2.textColor = [UIColor blackColor];
    _myLabel2.text = @"乔砥用药";
    [_myButton2 addSubview:_myLabel2];
    
    
    _myButton3 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton3.frame = CGRectMake(KWIDTH / 3 * 2, 64, KWIDTH / 3, KWIDTH / 3);
    _myButton3.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:_myButton3];
    _myImage3 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage3.backgroundColor = [UIColor orangeColor];
    [_myButton3 addSubview:_myImage3];
    _myLabel3 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel3.textColor = [UIColor blackColor];
    _myLabel3.text = @"乔砥用药";
    [_myButton3 addSubview:_myLabel3];
    
    
    _myButton4 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton4.frame = CGRectMake(0, 65 + KWIDTH / 3, KWIDTH / 3, KWIDTH / 3);
    _myButton4.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:_myButton4];
    _myImage4 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage4.backgroundColor = [UIColor cyanColor];
    [_myButton4 addSubview:_myImage4];
    _myLabel4 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel4.textColor = [UIColor blackColor];
    _myLabel4.text = @"乔砥用药";
    [_myButton4 addSubview:_myLabel4];
    
    
    _myButton5 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton5.frame = CGRectMake(KWIDTH / 3, 65 + KWIDTH / 3, KWIDTH / 3, KWIDTH / 3);
    _myButton5.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:_myButton5];
    _myImage5 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage5.backgroundColor = [UIColor grayColor];
    [_myButton5 addSubview:_myImage5];
    _myLabel5 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel5.textColor = [UIColor blackColor];
    _myLabel5.text = @"乔砥用药";
    [_myButton5 addSubview:_myLabel5];
    
    
    _myButton6 = [UIButton buttonWithType:UIButtonTypeCustom];
    _myButton6.frame = CGRectMake(KWIDTH / 3 * 2, 65 + KWIDTH / 3, KWIDTH / 3, KWIDTH / 3);
    _myButton6.backgroundColor = [UIColor grayColor];
    [self.view addSubview:_myButton6];
    _myImage6 = [[UIImageView alloc]initWithFrame:CGRectMake((KWIDTH / 3) / 3, (KWIDTH / 3) / 3 - 10, (KWIDTH / 3) / 3, (KWIDTH / 3) / 3)];
    _myImage6.backgroundColor = [UIColor greenColor];
    [_myButton6 addSubview:_myImage6];
    _myLabel6 = [[UILabel alloc]initWithFrame:CGRectMake(KWIDTH / 3 / 5, KWIDTH / 3 / 1.5, KWIDTH / 3 * 4, 20)];
    _myLabel6.textColor = [UIColor blackColor];
    _myLabel6.text = @"乔砥用药";
    [_myButton6 addSubview:_myLabel6];
    
 
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
